#ifndef __MY_DEBUG_H__
#define __MY_DEBUG_H__
    #include "Defaults.h"
    #include "Logger.h"
    #if DEBUGON
    
        #define DEBUG_B(x,y) Logger_B(x,y,(char*)__FILE__,(char*)__FUNCTION__,__LINE__)
        #define DEBUG_E(x,...) Logger('E',(char*)__FILE__,(char*)__FUNCTION__,__LINE__,x,__VA_ARGS__)
        #define DEBUG_I(x,...) Logger('I',(char*)__FILE__,(char*)__FUNCTION__,__LINE__,x,__VA_ARGS__)
        #define DEBUG_W(x,...) Logger('W',(char*)__FILE__,(char*)__FUNCTION__,__LINE__,x,__VA_ARGS__)
        #define DEBUG(x,...) Logger('D',(char*)"",(char*)__FUNCTION__,__LINE__,x,__VA_ARGS__)
		#define FORMAT(x,...) Format(x,__VA_ARGS__)
    #else
	
        #define DEBUG_B(x,y) /\
/DEBUG_B
        #define DEBUG_I(x,...) /\
/DEBUG_I
        #define DEBUG_E(x,...) /\
/DEBUG_I
        #define DEBUG_W(x,...) /\
/DEBUG_I
        #define DEBUG(x,...) /\
/DEBUG
        #define FORMAT(x,...) /\
/DEBUG
    #endif
#endif 

//DEBUG